package com.qfedu.springmvc.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ModelController {


    @RequestMapping("/model")
    public String test(Model model){
        model.addAttribute("name","kkk");
        model.addAttribute("age",18);
        return "index";
    }
}
